package com.three.productList.feign;

import com.three.core.entity.StoreEvaluate;
import com.three.core.vo.R;
import com.three.productList.vo.StoreRatVo;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ：li
 * @date ：Created in 2025/3/11 011 16:33
 * @description：
 * @modified By：
 * @version:
 */
@Component
public class StoreFallbackFactory implements FallbackFactory<StoreFeign> {
    @Override
    public StoreFeign create(Throwable cause) {
        return new StoreFeign() {
//            @Override
//            public R selectStoreByUserId() {
//                return new R<>(500,"服务器错误",null);
//            }

            @Override
            public R<StoreRatVo> selectEvaluateByStoreName(String storeName) {
                return new R<>(500,"服务器错误",null);
            }
        };
    }
}
